package com.jack.payment.entity.request;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "data数据格式单字段")
public class OneFieldModel implements Serializable {
    @Schema(description = "一般为id, 或 各种特殊字段")
    @NotBlank(message = "不能为空哦")
    private String field;


    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Schema(name = "创建api key")
    public static class ApiNameModel implements Serializable {
        @Schema(description = "创建的api 的名称")
        private String name;
    }

}
